package com.alipay.app.groupmeal.standard.ui.b.function.result;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.alipay.app.groupmeal.standard.R;
import com.alipay.app.groupmeal.standard.widget.ActionButton;
import com.alipay.app.groupmeal.standard.widget.business.BaseBScreenView;

public class BScreenFailResult extends BaseBScreenView {

    private TextView tv_title;
    private TextView tv_message;
    private ActionButton btn_action;

    public BScreenFailResult(Context context) {
        super(context);
    }

    public BScreenFailResult(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.view_pay_fail;
    }

    @Override
    protected void initView(View view) {
        tv_title = findViewById(R.id.tv_title);
        tv_message = findViewById(R.id.tv_message);
        btn_action = findViewById(R.id.btn_action);
    }

    @Override
    protected void initData() {

    }

    public void setTitleAndMessage(String title,String message){
        tv_title.setText(title);
        tv_message.setText(message);
    }

    public void setActionButton(String action){
        btn_action.setActionName(action);
    }
}
